package Dao;

import entity.ArticleAttachment;

import java.sql.SQLException;
import java.util.ArrayList;
import java.util.List;

/**
 * @Author Su
 * @Date 2025/4/28 23:10
 * @Version 1.0 （版本号）
 */
public interface ArticleAttachmentDAO {
    int createAttachment(ArticleAttachment attachment) throws SQLException;
    ArrayList<ArticleAttachment> getAttachmentByArticleId(int id) throws SQLException;
    List<ArticleAttachment> getAttachmentsByArticle(int articleId) throws SQLException;
    boolean deleteAttachment(int id) throws SQLException;
    int deleteAttachmentsByArticle(int articleId) throws SQLException;
}